package com.softWang.system.controller.vo.systemParameter;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class SystemParameterEditParam {

    @ApiModelProperty(value = "主键id")
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "名称，长度为60")
    @NotBlank(message = "pname不能为空")
    @Size(max = 60,message="pname长度为60")
    private String pname;

    @ApiModelProperty(value = "键，长度为60")
    @NotBlank(message = "pkey不能为空")
    @Size(max = 60,message="key长度为60")
    private String pkey;

    @ApiModelProperty(value = "值，长度为100")
    @NotBlank(message = "pvalue不能为空")
    @Size(max = 100,message="value长度为100")
    private String pvalue;

    @ApiModelProperty(value = "类型,{字符串:1,数值:2,布尔值:3}")
    @NotNull(message = "type不能为空")
    private Integer type;

    @ApiModelProperty(value = "备注")
    private String remark;

}